// 全局方法
import Vue from 'vue'
let gFun = () => console.log('🎨 全局方法')
Vue.prototype.$gFun = gFun


// 引入 filters 文件
import * as filters from '../assets/script/filters.js'
// 将每一 filter 设置到 Vue.filter 中
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]))


// 引入 directives 文件
import * as directives from '../assets/script/directives.js'
// 将每一 directive 设置到 Vue.directive 中
Object.keys(directives).forEach(key => Vue.directive(key, directives[key]))

